package com.amazon.main;

import com.amazon.file.reader.CommandFileReader;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 *
 * @author Salman Noor
 */
public class AmazonFileReader {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws IOException {
                       
       System.out.println("Please enter a valid text file to parse. eg. /var/dev/test.txt (Linux) and/or C:\\test\\text.txt");  
       System.out.println("Enter --help to see help.");  
       BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String command = "";
        CommandFileReader FR = CommandFileReader.getInstance();
        while (FR.readFile(command.replaceAll(" ", "")) != 0) {
            System.out.print("Amazon-Text-Command-Reader>:");
            command = br.readLine();
        }
    }
}
